import serviceApi from '../utils/request'
//查询
export function warningStatusCount(data: any) {
  return serviceApi({
    url: `largeScreen/warningStatusCount`,
    method: 'get',
    data
  })
}
//设备用户分布
export function selectDeviceTypeGroup(data: any) {
  return serviceApi({
    url: `largeScreen/selectDeviceTypeGroup`,
    method: 'get',
    data
  })
}

//设备佩戴统计
export function selectDevice(data: any) {
  return serviceApi({
    url: `largeScreen/selectDevice`,
    method: 'get',
    data
  })
}

//预警列表（分页）
export function getWarningList(data: any) {
  return serviceApi({
    url: `largeScreen/warningList`,
    method: 'get',
    data
  })
}
//预警趋势
export function getwarningTrend(data: any) {
  return serviceApi({
    url: `largeScreen/warningTrend`,
    method: 'get',
    data
  })
}

//预警频次
export function getgroupByHour(data: any) {
  return serviceApi({
    url: `largeScreen/groupByHour`,
    method: 'get',
    data
  })
}
//预警频次
export function warningDeviceTypeCount(data: any) {
  return serviceApi({
    url: `largeScreen/warningDeviceTypeCount`,
    method: 'get',
    data
  })
}
//预警设备占比
export function deviceProp(data: any) {
  return serviceApi({
    url: `largeScreen/deviceProp`,
    method: 'get',
    data
  })
}

//获取人员列表（分页）
export function familyList(data: any) {
  return serviceApi({
    url: `largeScreen/familyList`,
    method: 'get',
    data
  })
}
//根据familyId获取拥有的设备类型
export function getFamilyDeviceType(data: any) {
  return serviceApi({
    url: `largeScreen/getFamilyDeviceType`,
    method: 'get',
    data
  })
}
//获取图表数据
export function getDeviceData(data: any) {
  return serviceApi({
    url: `largeScreen/getDeviceData`,
    method: 'get',
    data
  })
}

//获取设备标准
export function getDeviceStandard(data: any) {
  return serviceApi({
    url: `largeScreen/getDeviceStandard`,
    method: 'get',
    data
  })
}
//获取所有机构列表（分页）
export function getInstitutionList(data: any) {
  return serviceApi({
    url: `/institution/list`,
    method: 'get',
    data
  })
}

//获取设备数据（分页）
export function getBloodData(data: any) {
  return serviceApi({
    url: `/largeScreen/getBloodData`,
    method: 'get',
    data
  })
}

//预警列表（分页）
export function warningListByFamily(data: any) {
  return serviceApi({
    url: `/largeScreen/warningListByFamily`,
    method: 'get',
    data
  })
}
//预警事件占比
export function warningRate(data: any) {
  return serviceApi({
    url: `/largeScreen/warningRate`,
    method: 'get',
    data
  })
}
export function getWarningCount(data: any) {
  return serviceApi({
    url: `largeScreen/getWarningCount`,
    method: 'get',
    data
  })
}
